<?php
/**
 * @copyright   Copyright (c) 2017 https://www.sapixx.com All rights reserved.
 * @license     Licensed (http://www.apache.org/licenses/LICENSE-2.0).
 * @author      pillar<ltmn@qq.com>
 * 应用配置
 */
namespace app\allwin\validate;
use think\Validate;

class Quan extends Validate{

    protected $rule = [
        'member_miniapp_id' => 'require',
        'title'             => 'require',
        'content'           => 'require',
        'picture'           => 'require',
    ];

    protected $message = [
        'member_miniapp_id' => '应用ID丢失',
        'title'             => '商圏名称必须填写',
        'content'           => '商圏简介必须填写',
        'picture'           => '图片必须选择',
    ];

    protected $scene = [
        'edit' => ['title','content','picture'],
        'add' => ['member_miniapp_id','title','content','picture'],
    ];
}